package com.lino.design.visitor;

import com.lino.design.user.impl.Student;
import com.lino.design.user.impl.Teacher;

/**
 * @description: 访问者接口
 * @author: lingjian
 * @createDate: 2023/2/10 11:03
 */
public interface Visitor {

    /**
     * 访问学生信息
     *
     * @param student 学生类
     */
    void visit(Student student);

    /**
     * 访问老师信息
     *
     * @param teacher 老师类
     */
    void visit(Teacher teacher);
}
